package com.goktech.entityDto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserDto {
    @JsonProperty("uId")
    @ApiModelProperty(value = "用户主键")
    @TableId(value = "u_id", type = IdType.AUTO)
    private Long uId;

    @JsonProperty("uUsername")
    @ApiModelProperty(value = "用户昵称")
    private String uUsername;

    @JsonProperty("uName")
    @ApiModelProperty(value = "用户姓名")
    private String uName;

    @JsonProperty("uBirthday")
    @ApiModelProperty(value = "用户生日")
    private String uBirthday;

    @JsonProperty("uSex")
    @ApiModelProperty(value = "用户性别")
    private String uSex;

    @JsonProperty("uImg")
    @ApiModelProperty(value = "用户头像地址")
    private String uImg;

    @JsonProperty("uArea")
    @ApiModelProperty(value = "账号地区")
    private String uArea;
}
